﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;

namespace GxTsSharp.Models
{
    [StructLayout(LayoutKind.Sequential)]
    public class NewLoginInfo
    {
        [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 50)]
        public string account;

        [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 50)]
        public string accountName;

        [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 50)]
        public string password;

        public int accountType;
        public int autoReconnect;
        public int serverCount;
        
    }

    [StructLayout(LayoutKind.Sequential)]
    public class Server
    {
        [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 50)]
        public string szIp;

        public int nPort;
    }
}
